dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBCommandBuilder Class / GetInsertCommand Method / GetInsertCommand(String[],Boolean) Method

On this page
    GetInsertCommand(String[],Boolean) Method
    On this page
    Returns the generated command that inserts the specified fields, optionally naming the parameters after the columns. Throws System.InvalidOperationException if the data adapter has no select command.
    Syntax
    'Declaration
     
    Public Overloads Shadows Function GetInsertCommand( _
       ByVal fields() As String, _
       ByVal useColumnsForParameterNames As Boolean _
    ) As MongoDBCommand
    public new MongoDBCommand GetInsertCommand( 
       string[] fields,
       bool useColumnsForParameterNames
    )

    Parameters

    fields
    useColumnsForParameterNames
    See Also